const validateAccount = (rule, value, callback) => {
    let reg = /\w{6,20}/;
    if (value != '' && value.test(reg)) {
        callback()
    } else {
        callback(alert(new Error('请正确输入账号')));
    }
};
const validatePassword = (rule, value, callback) => {
    let reg = /[a-zA-Z0-9-\.]{6,16}/;
    if (value != '' && value.test(reg)) {
        callback()
    } else {
        callback(alert(new Error('请正确输入密码')))
    }
}
export default {
    validateAccount,
    validatePassword
}